package com.example.Testclass;

import java.awt.print.Pageable;

public class Test1 {
    public static void main(String[] args) {
        Zi z = new Zi();
    }
}


class Fu {
    int age;

    //空参构造
    public Fu() {
        System.out.println("父类空参构造方法");
    }

    //带参数构造
    public Fu(int age) {
        this.age = age;
    }
}

class Zi extends Fu {

    public Zi() {
        //super();不存在
        this(10);
    }
    public Zi(int age) {
        super(age);//访问带参构造
    }
}